home *** CD-ROM | disk | FTP | other *** search
/ The Net Power 1996 March / Net Power 03 (March 1996).iso / prodigy / demo / veronica.dxr / 00001.ls next >
Encoding:
Text File  |  1995-10-25  |  1.5 KB  |  34 lines

  1. on startMovie
  2.   global gNameOfSoundFile, gChannelForHighButtons, gChannelForSound, gCuesForVoice, gLabelsForVoiceCues, gCountOfCues, gPreTicksForCue, gNextCueIndex, gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV, gLabelForEndScreen, gMouseDownInButton, gUseMenuButton
  3.   set gNameOfSoundFile to "Veronica.AIF"
  4.   set gChannelForHighButtons to 5
  5.   set gChannelForSound to 1
  6.   set the puppet of sprite gChannelForHighButtons to 1
  7.   set the visible of sprite gChannelForHighButtons to 0
  8.   set the ink of sprite gChannelForHighButtons to 0
  9.   set gCuesForVoice to [50, 75, 179, 388, 530, 690, 760, 1050, 1170, 1270, 1400, 1665, 1790, 1950, 2200, 2360, 2600, 2680, 2820, 2980, 3280, 3320, 3440, 3800]
  10.   set gLabelsForVoiceCues to ["Im", "SoLast", "Talk", "Itall", "NextThing", "Imin", "What", "Anyway", "hyphen", "HeandI", "Icouldnt", "Thats", "Nobody", "Hey", "ItGives", "InFact", "Eyesand", "Kinda", "Let", "You", "Imay", "ButI", "End"]
  11.   set gCountOfCues to 24
  12.   set gPreTicksForCue to 40
  13.   set gRadiusOfExitButton to 32
  14.   set gCenterOfMenuH to 141
  15.   set gCenterOfMenuV to 443
  16.   set gUseMenuButton to 0
  17.   set gLabelForEndScreen to "endinfo"
  18. end
  19.  
  20. on isWithinExitButton h, v
  21.   global gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV
  22.   set hComp to gCenterOfMenuH - h
  23.   set vComp to gCenterOfMenuV - v
  24.   set r to sqrt((hComp * hComp) + (vComp * vComp)) < gRadiusOfExitButton
  25.   return r
  26. end
  27.  
  28. on stopSound
  29.   global gChannelForSound
  30.   if soundBusy(gChannelForSound) then
  31.     sound stop gChannelForSound
  32.   end if
  33. end
  34.